package oceanwiki.service.impl;

import oceanwiki.entity.EbookSnapshot;
import oceanwiki.mapper.EbookSnapshotMapper;
import oceanwiki.resp.StatisticResp;
import oceanwiki.service.IEbookSnapshotService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author XBJ
 * @since 2024-09-07
 */
@Service
public class EbookSnapshotServiceImpl extends ServiceImpl<EbookSnapshotMapper, EbookSnapshot> implements IEbookSnapshotService {
    @Override
    public void getSnapshot() {
        this.baseMapper.getSnapshot();
    }

    @Override
    public List<StatisticResp> getStatistic() {
       return baseMapper.getStatistic();
    }

    @Override
    public List<StatisticResp> get30Statistic() {
       return baseMapper.get30Statistic();
    }
}
